<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改会议室管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-manager-edit" th:object="${tmdMeetingManager}">
            <div class="form-group">
                <label class="col-sm-3 control-label">编号:</label>
                <div class="col-sm-8">
                    <input name="meetingAddressName" th:field="*{id}" class="form-control" type="text" readonly="true">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">名称:</label>
                <div class="col-sm-8">
                    <input name="meetingAddressName" th:field="*{meetingAddressName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">地址:</label>
                <div class="col-sm-8">
                    <input name="address" th:field="*{address}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">是否可投影:</label>
                <div class="col-sm-8">
                    <select name="projection" class="form-control" th:field="*{projection}" >
                        <option value="">请选择</option>
                        <option value="0">可投影</option>
                        <option value="1">不可以投影</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建人:</label>
                <div class="col-sm-8">
                    <input name="createPerson" th:field="*{createPerson}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">创建时间:</label>
                <div class="col-sm-8">
                    <input name="createPerson" th:field="*{createTime}" class="form-control" type="text" >
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">状态:</label>
                <div class="col-sm-8">
                    <select name="status" th:field="*{status}" class="form-control" >
                        <option value="0">正常</option>
                        <option value="1">使用中</option>
                        <option value="2">维修中</option>
                        <option value="3">已停用</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">类型:</label>
                <div class="col-sm-8">
                    <select name="type" th:field="*{type}" class="form-control" >
                        <option value="0">普通会议室</option>
                        <option value="1">路演厅</option>
                        <option value="2">其他</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">可容纳人数:</label>
                <div class="col-sm-8">
                    <input name="size" th:field="*{size}"  class="form-control" type="text" ><span>(单位:人)</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label ">空间:</label>
                <div class="col-sm-8">
                    <input name="area" th:field="*{area}" class="form-control" type="text"><span>(单位:平米)</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">附件:</label>
                <div class="col-sm-8">
                    <textarea name="text" class="form-control">[[*{text}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">备注:</label>
                <div class="col-sm-8">
                    <textarea name="context" class="form-control">[[*{context}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "meeting/manager";
        $("#form-manager-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-manager-edit').serialize());
            }
        }
    </script>
</body>
</html>